import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;


public class Principale{

	public static void main(String[] args) {

		JTextArea zone_travail = new JTextArea();
		zone_travail.setEditable(true);
		zone_travail.setDragEnabled(true);

		JPanel pan = new JPanel();
		pan.setLayout(new BorderLayout());
		pan.add(zone_travail);
		

		JFrame fen = new JFrame("Drag&Drop TEST");
		fen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		fen.setLocationRelativeTo(null);
		fen.setContentPane(pan);
		
		fen.setSize(new Dimension(800, 800));
		fen.setVisible(true);

		System.out.println("SA MARCHE");
	}

}
